<?php
class VanBanController extends Zend_Controller_Action
{

	public function init()
	{
		/* Initialize action controller here */
	}

	public function indexAction()
	{
		$vanbanMapper = Library_Model_VanBanMapper::getInstance();
		$vanban = $vanbanMapper->vanbanList();
		$this->view->vanban = $vanban;
		 
		Zend_Registry::get('logger')->info($vanban);		 		
	}
	
	public function chitietAction(){
		$vb_id = $this->_request->getParam('id');
		 
		$vanbanMapper = Library_Model_VanBanMapper::getInstance();
		$vanban = $vanbanMapper->searchVanBanById($vb_id);
		$this->view->vanban = $vanban;
	}
}